package org.celery.modules.goods.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.goods.entity.GoodsSpecificationData;
import org.celery.modules.goods.vo.GoodsSpecificationDataVO;

/**
 * 商品规格数据表包装类,返回视图层所需的字段
 *
 * @author Celery
 * @since 2021-10-28
 */
public class GoodsSpecificationDataWrapper extends BaseEntityWrapper<GoodsSpecificationData, GoodsSpecificationDataVO>  {

    public static GoodsSpecificationDataWrapper build() {
        return new GoodsSpecificationDataWrapper();
    }

	@Override
	public GoodsSpecificationDataVO entityVO(GoodsSpecificationData goodsSpecificationData) {
		GoodsSpecificationDataVO goodsSpecificationDataVO = BeanUtil.copy(goodsSpecificationData, GoodsSpecificationDataVO.class);

		return goodsSpecificationDataVO;
	}

}
